import Chinese from 'chinese-s2t'

// 简体转繁体
export function toTraditionalChinese(tableData: ITableDataItem[]) {
  tableData.forEach((item) => {
    const name = item.newest.name
    if (name) {
      item.newest.name = Chinese.s2t(name)
    }
  })
}

// 繁体转简体
export function toSimplifiedChinese(tableData: ITableDataItem[]) {
  tableData.forEach((item) => {
    const name = item.newest.name
    if (name) {
      item.newest.name = Chinese.t2s(name)
    }
  })
}
